package com.xnx3.wangmarket.admin.service;

import com.xnx3.wangmarket.admin.entity.Page;
import com.xnx3.wangmarket.admin.entity.Product;
import com.xnx3.wangmarket.admin.entity.Site;
import com.xnx3.wangmarket.admin.entity.SiteColumn;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;
import java.util.List;

public interface ProductManagementService {

    /***
     * 新增，修改产品信息
     * **/
    public void updateProductInfo(Product product,int userid, HttpServletRequest request);
    /***
     * 获取到产品大类
     * **/
    public List<SiteColumn> productType(int userid);
    /***
     * 获取到产品大类
     * **/
    public SiteColumn pctType(int id);
    /***
     * 获取产品的详细信息
     * **/
    public List<Product> queryProductList(int userid);
    public Product queryProduct(int id);
    /**
     * 删除产品
     * **/
    public void delProduct(Product product);

    /**
     * 产品分页
     * ***/
    List<Product> productListPage(int page,int count ,int userid,Product product);
    /***
     * 总数
     * */
    int productCount( int userid);

    Page findPage(int page,int count,Product product);
}
